<?php
$host = "localhost";
$username = "root";
$password = "bchine";
$database = "takecourse";

$conn=mysql_connect($host,$username,$password) or die("数据库连接失败");
mysql_select_db($database);
?>